<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VectSharp: VectSharp.Plots.Function2DGrid Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">VectSharp<span id="projectnumber">&#160;2.6.1</span>
   </div>
   <div id="projectbrief">A light library for C# vector graphics</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_vect_sharp_1_1_plots_1_1_function2_d_grid.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">VectSharp.Plots.Function2DGrid Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Represents a function of two variables that has been sampled in some points.   
 <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a2f6dd50ee86ddb7a1bc038c5ea915cb2"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a2f6dd50ee86ddb7a1bc038c5ea915cb2">GridType</a> </td></tr>
<tr class="memdesc:a2f6dd50ee86ddb7a1bc038c5ea915cb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Describes the arrangement of the points that have been sampled.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a2f6dd50ee86ddb7a1bc038c5ea915cb2">More...</a><br /></td></tr>
<tr class="separator:a2f6dd50ee86ddb7a1bc038c5ea915cb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a159cd51df7d0b0e8a6d816e92f54e136"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a159cd51df7d0b0e8a6d816e92f54e136">Function2DGrid</a> (IReadOnlyList&lt; IReadOnlyList&lt; double &gt; &gt; dataPoints)</td></tr>
<tr class="memdesc:a159cd51df7d0b0e8a6d816e92f54e136"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html" title="Represents a function of two variables that has been sampled in some points.">Function2DGrid</a> from a list of sampled values.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a159cd51df7d0b0e8a6d816e92f54e136">More...</a><br /></td></tr>
<tr class="separator:a159cd51df7d0b0e8a6d816e92f54e136"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95b64493a64032705aaee2b196417a84"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a95b64493a64032705aaee2b196417a84">Function2DGrid</a> (Func&lt; double[], double &gt; function, double minX, double minY, double maxX, double maxY, int stepsX, int stepsY, <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a2f6dd50ee86ddb7a1bc038c5ea915cb2">GridType</a> type)</td></tr>
<tr class="memdesc:a95b64493a64032705aaee2b196417a84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html" title="Represents a function of two variables that has been sampled in some points.">Function2DGrid</a> by sampling the provided function.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a95b64493a64032705aaee2b196417a84">More...</a><br /></td></tr>
<tr class="separator:a95b64493a64032705aaee2b196417a84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41446bc31100c8f9c46e205aad5f70be"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html">Function2DGrid</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a41446bc31100c8f9c46e205aad5f70be">ToRectangular</a> ()</td></tr>
<tr class="memdesc:a41446bc31100c8f9c46e205aad5f70be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a hexagonal grid into a rectangular grid.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a41446bc31100c8f9c46e205aad5f70be">More...</a><br /></td></tr>
<tr class="separator:a41446bc31100c8f9c46e205aad5f70be"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a5b36134dc56416eed278cf4d3703e13a"><td class="memItemLeft" align="right" valign="top">IReadOnlyList&lt; IReadOnlyList&lt; double &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a5b36134dc56416eed278cf4d3703e13a">DataPoints</a><code> [get]</code></td></tr>
<tr class="memdesc:a5b36134dc56416eed278cf4d3703e13a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The points where the function has been sampled.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a5b36134dc56416eed278cf4d3703e13a">More...</a><br /></td></tr>
<tr class="separator:a5b36134dc56416eed278cf4d3703e13a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04689018c27ada7e64cd0c7aec9da16a"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a04689018c27ada7e64cd0c7aec9da16a">MinX</a><code> [get]</code></td></tr>
<tr class="memdesc:a04689018c27ada7e64cd0c7aec9da16a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The minimum X value that has been sampled.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a04689018c27ada7e64cd0c7aec9da16a">More...</a><br /></td></tr>
<tr class="separator:a04689018c27ada7e64cd0c7aec9da16a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fefac507e95c7b97ea2e72402731e0d"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a3fefac507e95c7b97ea2e72402731e0d">MaxX</a><code> [get]</code></td></tr>
<tr class="memdesc:a3fefac507e95c7b97ea2e72402731e0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The maximum X value that has been sampled.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a3fefac507e95c7b97ea2e72402731e0d">More...</a><br /></td></tr>
<tr class="separator:a3fefac507e95c7b97ea2e72402731e0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef3299abb1e471bb861b37e142c1d8f6"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#aef3299abb1e471bb861b37e142c1d8f6">MinY</a><code> [get]</code></td></tr>
<tr class="memdesc:aef3299abb1e471bb861b37e142c1d8f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">The minimum Y value that has been sampled.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#aef3299abb1e471bb861b37e142c1d8f6">More...</a><br /></td></tr>
<tr class="separator:aef3299abb1e471bb861b37e142c1d8f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78414e4e0823a0c377d1d21aa1de0467"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a78414e4e0823a0c377d1d21aa1de0467">MaxY</a><code> [get]</code></td></tr>
<tr class="memdesc:a78414e4e0823a0c377d1d21aa1de0467"><td class="mdescLeft">&#160;</td><td class="mdescRight">The maximum Y value that has been sampled.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a78414e4e0823a0c377d1d21aa1de0467">More...</a><br /></td></tr>
<tr class="separator:a78414e4e0823a0c377d1d21aa1de0467"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ddc676d007a7a9d7dbd05d03c81be2c"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a0ddc676d007a7a9d7dbd05d03c81be2c">MinZ</a><code> [get]</code></td></tr>
<tr class="memdesc:a0ddc676d007a7a9d7dbd05d03c81be2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The minimum value that has been obtained for the function.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a0ddc676d007a7a9d7dbd05d03c81be2c">More...</a><br /></td></tr>
<tr class="separator:a0ddc676d007a7a9d7dbd05d03c81be2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf78eee23cfe29e494cc2c68fb640db1"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#abf78eee23cfe29e494cc2c68fb640db1">MaxZ</a><code> [get]</code></td></tr>
<tr class="memdesc:abf78eee23cfe29e494cc2c68fb640db1"><td class="mdescLeft">&#160;</td><td class="mdescRight">The maximum value that has been obtained for the function.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#abf78eee23cfe29e494cc2c68fb640db1">More...</a><br /></td></tr>
<tr class="separator:abf78eee23cfe29e494cc2c68fb640db1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad995d116a237aaee2cf2a7c4d1cfca60"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#ad995d116a237aaee2cf2a7c4d1cfca60">StepsX</a><code> [get]</code></td></tr>
<tr class="memdesc:ad995d116a237aaee2cf2a7c4d1cfca60"><td class="mdescLeft">&#160;</td><td class="mdescRight">If the function has been sampled along a regular grid, the number of steps between <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a04689018c27ada7e64cd0c7aec9da16a" title="The minimum X value that has been sampled.">MinX</a> and <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a3fefac507e95c7b97ea2e72402731e0d" title="The maximum X value that has been sampled.">MaxX</a> on the X axis.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#ad995d116a237aaee2cf2a7c4d1cfca60">More...</a><br /></td></tr>
<tr class="separator:ad995d116a237aaee2cf2a7c4d1cfca60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31f8d0612ad73714ca118077c673cf6a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a31f8d0612ad73714ca118077c673cf6a">StepsY</a><code> [get]</code></td></tr>
<tr class="memdesc:a31f8d0612ad73714ca118077c673cf6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">If the function has been sampled along a regular grid, the number of steps between <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#aef3299abb1e471bb861b37e142c1d8f6" title="The minimum Y value that has been sampled.">MinY</a> and <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a78414e4e0823a0c377d1d21aa1de0467" title="The maximum Y value that has been sampled.">MaxY</a> on the X axis.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a31f8d0612ad73714ca118077c673cf6a">More...</a><br /></td></tr>
<tr class="separator:a31f8d0612ad73714ca118077c673cf6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba9bb108f383038940fbb2c9cca70579"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a2f6dd50ee86ddb7a1bc038c5ea915cb2">GridType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#aba9bb108f383038940fbb2c9cca70579">Type</a><code> [get]</code></td></tr>
<tr class="memdesc:aba9bb108f383038940fbb2c9cca70579"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type of grid.   <a href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#aba9bb108f383038940fbb2c9cca70579">More...</a><br /></td></tr>
<tr class="separator:aba9bb108f383038940fbb2c9cca70579"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Represents a function of two variables that has been sampled in some points.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00029">29</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a2f6dd50ee86ddb7a1bc038c5ea915cb2" name="a2f6dd50ee86ddb7a1bc038c5ea915cb2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f6dd50ee86ddb7a1bc038c5ea915cb2">&#9670;&#160;</a></span>GridType</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a2f6dd50ee86ddb7a1bc038c5ea915cb2">VectSharp.Plots.Function2DGrid.GridType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Describes the arrangement of the points that have been sampled.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00034">34</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a159cd51df7d0b0e8a6d816e92f54e136" name="a159cd51df7d0b0e8a6d816e92f54e136"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a159cd51df7d0b0e8a6d816e92f54e136">&#9670;&#160;</a></span>Function2DGrid() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VectSharp.Plots.Function2DGrid.Function2DGrid </td>
          <td>(</td>
          <td class="paramtype">IReadOnlyList&lt; IReadOnlyList&lt; double &gt; &gt;&#160;</td>
          <td class="paramname"><em>dataPoints</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html" title="Represents a function of two variables that has been sampled in some points.">Function2DGrid</a> from a list of sampled values.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dataPoints</td><td>The sampled values. Each element of this IReadOnlyList&lt;T&gt; should be a collection of three values: the X coordinate of the sampled point, the Y coordinate of the sampled point, and the value of the function at that point.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00117">117</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="a95b64493a64032705aaee2b196417a84" name="a95b64493a64032705aaee2b196417a84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95b64493a64032705aaee2b196417a84">&#9670;&#160;</a></span>Function2DGrid() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VectSharp.Plots.Function2DGrid.Function2DGrid </td>
          <td>(</td>
          <td class="paramtype">Func&lt; double[], double &gt;&#160;</td>
          <td class="paramname"><em>function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>minX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>minY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>maxX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>maxY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>stepsX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>stepsY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a2f6dd50ee86ddb7a1bc038c5ea915cb2">GridType</a>&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html" title="Represents a function of two variables that has been sampled in some points.">Function2DGrid</a> by sampling the provided function.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">function</td><td>The function to sample.</td></tr>
    <tr><td class="paramname">minX</td><td>The minimum X value at which the function should be sampled.</td></tr>
    <tr><td class="paramname">minY</td><td>The minimum Y value at which the function should be sampled.</td></tr>
    <tr><td class="paramname">maxX</td><td>The maximum X value at which the function should be sampled.</td></tr>
    <tr><td class="paramname">maxY</td><td>The maximum Y value at which the function should be sampled.</td></tr>
    <tr><td class="paramname">stepsX</td><td>If <em>type</em>  is not GridType.Irregular, the number of steps between <em>minX</em>  and <em>maxX</em>  on the X axis. Otherwise, the number of sampled points is determined by multiplying <em>stepsX</em>  and <em>stepsY</em>  together.</td></tr>
    <tr><td class="paramname">stepsY</td><td>If <em>type</em>  is not GridType.Irregular, the number of steps between <em>minY</em>  and <em>maxY</em>  on the Y axis. Otherwise, the number of sampled points is determined by multiplying <em>stepsX</em>  and <em>stepsY</em>  together.</td></tr>
    <tr><td class="paramname">type</td><td>The strategy used to select points to sample. If this is GridType.Irregular, uniformly distributed random points between (<em>minX</em> , <em>minY</em> ) and (<em>maxX</em> , <em>maxY</em> ) are sampled.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00163">163</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a41446bc31100c8f9c46e205aad5f70be" name="a41446bc31100c8f9c46e205aad5f70be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41446bc31100c8f9c46e205aad5f70be">&#9670;&#160;</a></span>ToRectangular()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html">Function2DGrid</a> VectSharp.Plots.Function2DGrid.ToRectangular </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts a hexagonal grid into a rectangular grid.  </p>
<dl class="section return"><dt>Returns</dt><dd>If <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#aba9bb108f383038940fbb2c9cca70579" title="The type of grid.">Type</a> is GridType.Rectangular, this method returns the current instance. <br  />
 If <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#aba9bb108f383038940fbb2c9cca70579" title="The type of grid.">Type</a> is GridType.HexagonHorizontal or GridType.HexagonVertical, a new <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html" title="Represents a function of two variables that has been sampled in some points.">Function2DGrid</a> with <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#aba9bb108f383038940fbb2c9cca70579" title="The type of grid.">Type</a> equal to GridType.Rectangular is returned. The sampled points in this grid are obtained by performing a bilinear interpolation on the sampled points from this grid. The returned grid will always be "denser" than the current instance.<br  />
 If <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#aba9bb108f383038940fbb2c9cca70579" title="The type of grid.">Type</a> is GridType.Irregular, an InvalidOperationException is thrown.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">InvalidOperationException</td><td>Thrown if <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#aba9bb108f383038940fbb2c9cca70579" title="The type of grid.">Type</a> is GridType.Irregular.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00322">322</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="a5b36134dc56416eed278cf4d3703e13a" name="a5b36134dc56416eed278cf4d3703e13a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b36134dc56416eed278cf4d3703e13a">&#9670;&#160;</a></span>DataPoints</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">IReadOnlyList&lt;IReadOnlyList&lt;double&gt; &gt; VectSharp.Plots.Function2DGrid.DataPoints</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The points where the function has been sampled.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00062">62</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="a3fefac507e95c7b97ea2e72402731e0d" name="a3fefac507e95c7b97ea2e72402731e0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fefac507e95c7b97ea2e72402731e0d">&#9670;&#160;</a></span>MaxX</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Plots.Function2DGrid.MaxX</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The maximum X value that has been sampled.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00072">72</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="a78414e4e0823a0c377d1d21aa1de0467" name="a78414e4e0823a0c377d1d21aa1de0467"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78414e4e0823a0c377d1d21aa1de0467">&#9670;&#160;</a></span>MaxY</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Plots.Function2DGrid.MaxY</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The maximum Y value that has been sampled.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00082">82</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="abf78eee23cfe29e494cc2c68fb640db1" name="abf78eee23cfe29e494cc2c68fb640db1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf78eee23cfe29e494cc2c68fb640db1">&#9670;&#160;</a></span>MaxZ</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Plots.Function2DGrid.MaxZ</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The maximum value that has been obtained for the function.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00092">92</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="a04689018c27ada7e64cd0c7aec9da16a" name="a04689018c27ada7e64cd0c7aec9da16a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04689018c27ada7e64cd0c7aec9da16a">&#9670;&#160;</a></span>MinX</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Plots.Function2DGrid.MinX</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The minimum X value that has been sampled.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00067">67</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="aef3299abb1e471bb861b37e142c1d8f6" name="aef3299abb1e471bb861b37e142c1d8f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef3299abb1e471bb861b37e142c1d8f6">&#9670;&#160;</a></span>MinY</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Plots.Function2DGrid.MinY</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The minimum Y value that has been sampled.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00077">77</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="a0ddc676d007a7a9d7dbd05d03c81be2c" name="a0ddc676d007a7a9d7dbd05d03c81be2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ddc676d007a7a9d7dbd05d03c81be2c">&#9670;&#160;</a></span>MinZ</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Plots.Function2DGrid.MinZ</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The minimum value that has been obtained for the function.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00087">87</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="ad995d116a237aaee2cf2a7c4d1cfca60" name="ad995d116a237aaee2cf2a7c4d1cfca60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad995d116a237aaee2cf2a7c4d1cfca60">&#9670;&#160;</a></span>StepsX</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int VectSharp.Plots.Function2DGrid.StepsX</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>If the function has been sampled along a regular grid, the number of steps between <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a04689018c27ada7e64cd0c7aec9da16a" title="The minimum X value that has been sampled.">MinX</a> and <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a3fefac507e95c7b97ea2e72402731e0d" title="The maximum X value that has been sampled.">MaxX</a> on the X axis.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00098">98</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="a31f8d0612ad73714ca118077c673cf6a" name="a31f8d0612ad73714ca118077c673cf6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31f8d0612ad73714ca118077c673cf6a">&#9670;&#160;</a></span>StepsY</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int VectSharp.Plots.Function2DGrid.StepsY</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>If the function has been sampled along a regular grid, the number of steps between <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#aef3299abb1e471bb861b37e142c1d8f6" title="The minimum Y value that has been sampled.">MinY</a> and <a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a78414e4e0823a0c377d1d21aa1de0467" title="The maximum Y value that has been sampled.">MaxY</a> on the X axis.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00104">104</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<a id="aba9bb108f383038940fbb2c9cca70579" name="aba9bb108f383038940fbb2c9cca70579"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba9bb108f383038940fbb2c9cca70579">&#9670;&#160;</a></span>Type</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html#a2f6dd50ee86ddb7a1bc038c5ea915cb2">GridType</a> VectSharp.Plots.Function2DGrid.Type</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The type of grid.  </p>

<p class="definition">Definition at line <a class="el" href="_function2_d_8cs_source.html#l00109">109</a> of file <a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>VectSharp.Plots/<a class="el" href="_function2_d_8cs_source.html">Function2D.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_vect_sharp.html">VectSharp</a></li><li class="navelem"><a class="el" href="namespace_vect_sharp_1_1_plots.html">Plots</a></li><li class="navelem"><a class="el" href="class_vect_sharp_1_1_plots_1_1_function2_d_grid.html">Function2DGrid</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
